<template>
  <div id="app">
    <!-- 登录页面不显示Layout -->
    <Layout v-if="!isLoginPage" />
    <!-- 登录页面独立显示 -->
    <router-view v-if="isLoginPage" />
  </div>
</template>

<script setup lang="ts">
import { computed } from 'vue'
import { useRoute } from 'vue-router'
import Layout from './components/Layout.vue'

const route = useRoute()

// 检查是否为登录页面
const isLoginPage = computed(() => {
  return route.path === '/login'
})
</script>
